﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>列表数据生成Tree</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" /><link href="../demo.css" rel="stylesheet" type="text/css" />

    
    <script src="../../scripts/boot.js" type="text/javascript"></script>

</head>
<body>
    <h1>列表数据生成Tree</h1>      

    
    
    <ul id="tree1" class="mini-tree" url="listTree.txt" style="width:200px;padding:5px;" 
        showTreeIcon="true" 
        showArrow="true" expandOnNodeClick="true"

        textField="a.text" idField="id" parentField="pid" resultAsTree="false" dataField="list"
        >
    </ul>       
    

    <div class="description">
        <h3>Description</h3>
        <p>            
            mini.Tree的url，可以指向一个列表数据。重点要声明"idField"、"parentField"、"resultAsTree"三个属性。
        </p>
    </div>
</body>
</html>